﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ajax_film_schedule.aspx.cs"
    Inherits="Cinemax.Ajax.ajax_film_schedule" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="5" cellspacing="0" style="font-size: 13px;">
        <tr>
            <td>
                Chọn suất chiếu:
            </td>
        </tr>
        <%
            int i = 0;
            foreach (List<Cinemax.DTO.SuatChieuDTO> item in lsc_f)
            {
        %>
        <tr>
            <td>
                <%=listPhim.ElementAt(i).TenPhim %>
            </td>
        </tr>
        <%
            if (item.Count > 0)
            {
                foreach (Cinemax.DTO.SuatChieuDTO sc in item)
                {
        %>
        <tr>
            <td>
            </td>
            <td>
                <%=sc.ThoiGianBatDau.ToString("hh:mm")%>
            </td>
            <td>
                Phòng chiếu:
                <%
                Cinemax.DTO.PhongChieuDTO pc = new Cinemax.DTO.PhongChieuDTO();
                pc = Cinemax.DAO.PhongChieuDAO.GetPhongChieuByID(sc.MaPhongChieu);
                %>
                <a href="../choose_seat.aspx?Phong=<%=sc.MaPhongChieu %>&SuatChieu=<%=sc.MaSuatChieu %>">
                    <%=pc.TenPhongChieu%></a>
            </td>
        </tr>
        <%
            }
            }
            else
            {
        %>
        <tr>
            <td>
            </td>
            <td>
                Không có suất chiếu nào
            </td>
        </tr>
        <%
            }
        %>
        <%
i++;
            }
        %>
    </table>
    </form>
</body>
</html>
